#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

int main()
{
    //打印进程id
    printf("pid = %d\n", getpid());
    //死循环让进程不结束
    while (1)
        ;
    return 0;
}